import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from './base.entity';

/**
 * 学生
 */
@Entity('student')
export default class Student extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ comment: '用户ID' })
  userId: string;

  @Column({ comment: '姓名' })
  name: string;

  @Column({ nullable: true, comment: '出生日期' })
  birth: Date;

  @Column({ comment: '性别' })
  sex: string;

  @Column({ comment: '学院' })
  college: string;

  @Column({ comment: '专业' })
  major: string;

  @Column({ default: '', comment: '在校经历' })
  experience: string;

  @Column({ default: '', comment: '专业技能' })
  skill: string;

  // @Column({ comment: '手机号' })
  // phone: string;

  // @Column({ comment: '学校' })
  // school: string;

  // @Column({ default: null, comment: '期望职位' })
  // position_id: number;
}
